<style>
body{
font-family:"Century Gothic";
background-color:#000;
margin:0px 0px;
}
#aliranshout{
background-color:#fff;
color:#33;
width:100%;
//padding:5px 5px;
}
#aliranshout td{
border-bottom:1px solid #bbb;
padding:5px 5px;
}
.waktu{
text-align:right;
font-size:10pt;
color:#555;
}
.alt{
background-color:#ddd;
text-align:right;
}
.alt .waktu{
color:#555;
}

</style>
<table border=0 id="aliranshout" cellspacing=0>
<?php
include "koneksi.php";
$perintah = "select * from datashout order by waktu desc limit 0, 50";
$hasil = mysql_query($perintah);
$alt=true;
while($data=mysql_fetch_array($hasil)){

if($alt==true){
echo "<tr><td><b><a href='mailto:$data[email]'>$data[nama]</a></b><br>$data[pesan]</td></tr>
<tr><td class='waktu'>$data[waktu]</td></tr>";
$alt=false;
}else{
echo "<tr class='alt'><td><b><a href='mailto:$data[email]'>$data[nama]</a></b><br>$data[pesan]</td></tr>
<tr class='alt'><td class='waktu'>$data[waktu]</td></tr>";
$alt=true;
}
}
?>
</table>